package com.testmanager.testmananger.quantitative.domain;

import com.testmanager.testmananger.foundation.domain.AbstractAuditingEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Entity
@Table(name = "yx_test_info")
@Accessors(chain = true)
@Data
@DynamicInsert
@DynamicUpdate

public class TestInfoEntity extends AbstractAuditingEntity implements Serializable {

    private static final long serialVersionUID = 6862879005047395741L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;
    @Column(name = "iteration_id")
    private long iterationId;
    @Column(name = "testno")
    private long testNo;
    @Column(name = "schedule_time_from")
    private LocalDateTime scheduleTimeFrom;
    @Column(name = "schedule_time_to")
    private LocalDateTime scheduleTimeTo;
    @Column(name = "practice_time_from")
    private LocalDateTime practiceTimeFrom;
    @Column(name = "practice_time_to")
    private LocalDateTime practiceTimeTo;
    @Column
    private double progress;
    @Column(name = "test_case_url")
    private String testCaseURL;
    @Column(name = "quick_test_case_url")
    private String quickTestCaseURL;
    @Column(name = "risk_point")
    private String riskPoint;
    @Column(name="submit_test",columnDefinition = "tinyint default 0")
    private boolean submitTest;//提测情况
    @Column(name = "env")
    private String env;//环境情况


}
